<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改复诊基本信息')" />
    <th:block th:include="include :: datetimepicker-css" />
    <th:block th:include="include :: select2-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeIn">
        <div >
            <input type="hidden" id="raiId" th:value="${admInfo?.raiId}">
            <input type="hidden" id="raiAdmId" th:value="${adm?.admId}">
            <input type="hidden" id="patId" th:value="${adm?.patId}">
            <form class="form-horizontal m" id="form-adminfo-edit" >
                <div class="form-group">
                    <label class="col-sm-2 control-label">评估吸入装置使用技术：</label>
                    <div class="col-sm-7">
                        <label class="check-box" >
                            <input type="checkbox"
                                   name="suctionDevice"
                                   value="1"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('suctionDevice')?:'','1')}"
                            >
                            吸入技术掌握较好
                        </label>
                        <label class="check-box" >
                            <input type="checkbox"
                                   name="suctionDevice"
                                   value="2"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('suctionDevice')?:'','2')}"
                            >
                            吸药前准备不充分
                        </label>
                        <label class="check-box" >
                            <input type="checkbox"
                                   name="suctionDevice"
                                   value="3"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('suctionDevice')?:'','3')}"
                            >
                            吸药后未憋气
                        </label>
                        <label class="check-box" >
                            <input type="checkbox"
                                   name="suctionDevice"
                                   value="4"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('suctionDevice')?:'','4')}"
                            >
                            吸药后未漱口
                        </label>
                        <label class="check-box" >
                            <input type="checkbox"
                                   name="suctionDevice"
                                   value="5"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('suctionDevice')?:'','5')}"
                            >
                            未上药
                        </label>
                        <label class="check-box" >
                            <input type="checkbox"
                                   name="suctionDevice"
                                   value="6"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('suctionDevice')?:'','6')}"
                            >
                            反复多次吸药
                        </label>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">评估吸入药物置使用依从：</label>
                    <div class="col-sm-5">
                        <div class="radio-box" >
                            <input type="radio"
                                   id="suctionDeviceCompliance1"
                                   th:checked="${admInfo?.raiDetail?.get('suctionDeviceCompliance') eq '0'}"
                                   name="suctionDeviceCompliance" value="0" >
                            <label for="suctionDeviceCompliance1">依从性佳</label>
                        </div>
                        <div class="radio-box" >
                            <input type="radio"
                                   id="suctionDeviceCompliance2"
                                   th:checked="${admInfo?.raiDetail?.get('suctionDeviceCompliance') eq '1'}"
                                   name="suctionDeviceCompliance" value="1" >
                            <label for="suctionDeviceCompliance2">自行停药</label>
                        </div>
                        <div class="radio-box" >
                            <input type="radio"
                                   id="suctionDeviceCompliance3"
                                   th:checked="${admInfo?.raiDetail?.get('suctionDeviceCompliance') eq '2'}"
                                   name="suctionDeviceCompliance" value="2" >
                            <label for="suctionDeviceCompliance3">自行减量</label>
                        </div>
                        <div class="radio-box" >
                            <input type="radio"
                                   id="suctionDeviceCompliance4"
                                   th:checked="${admInfo?.raiDetail?.get('suctionDeviceCompliance') eq '3'}"
                                   name="suctionDeviceCompliance" value="3" >
                            <label for="suctionDeviceCompliance4">自行加量</label>
                        </div>
                        <div class="radio-box" >
                            <input type="radio"
                                   id="suctionDeviceCompliance5"
                                   th:checked="${admInfo?.raiDetail?.get('suctionDeviceCompliance') eq '4'}"
                                   name="suctionDeviceCompliance" value="4" >
                            <label for="suctionDeviceCompliance5">自行增加药物</label>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">调整治疗：</label>
                    <div class="col-sm-2">
                        <div class="radio-box" th:each="dict : ${@dict.getType('sys_yes_no')}">
                            <input type="radio"
                                   th:checked="${admInfo?.raiDetail?.get('AdjustingTreatment') eq dict.dictValue}"
                                   th:id="'AdjustingTreatment'+${dict.dictCode}"
                                   name="AdjustingTreatment" th:value="${dict.dictValue}" >
                            <label th:for="'AdjustingTreatment'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">急性发作史评估：</label>
                    <div class="col-sm-10">
                        <input name="AssessmentAcuteAttackHistory" th:value="${admInfo?.raiDetail?.get('AssessmentAcuteAttackHistory')}"  class="form-control"  type="text">
                    </div>
                </div>
                <header class="form-header h4">评估氧疗的必要性</header>
                <div class="form-group">
                    <label class="col-sm-2 control-label">PO2 mmHg：</label>
                    <div class="col-sm-2">
                        <input name="PO2" th:value="${admInfo?.raiDetail?.get('PO2')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">PCO2 mmHg：</label>
                    <div class="col-sm-2">
                        <input name="PCO2" th:value="${admInfo?.raiDetail?.get('PCO2')}"  class="form-control"  type="text">
                    </div>

                    <label class="col-sm-2 control-label">SO2：</label>
                    <div class="col-sm-2">
                        <input name="SO2" th:value="${admInfo?.raiDetail?.get('SO2')}"  class="form-control"  type="text">
                    </div>
                </div>
                <div class="form-group">
                    <div class="radio-box" >
                        <input type="radio"
                               th:checked="${admInfo?.raiDetail?.get('pneumaticArtery') eq '1'}"
                               id="pneumaticArtery1"
                               name="pneumaticArtery"
                               value="1" >
                        <label for="pneumaticArtery1" >I型呼吸衰竭</label>
                    </div>
                    <div class="radio-box" >
                        <input type="radio"
                               th:checked="${admInfo?.raiDetail?.get('pneumaticArtery') eq '2'}"
                               id="pneumaticArtery2"
                               name="pneumaticArtery"
                               value="2" >
                        <label for="pneumaticArtery2" >II型呼吸衰竭</label>
                    </div>
                </div>
                <header class="form-header h4">慢阻肺评估测试CAT评分</header>
                <table class="table table-bordered">
                    <thead>
                    <tr >
                        <th width="30%">症状</th><th>评分（分)</th><th width="30%">症状</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr >
                        <td >我从不咳嗽</td>
                        <td >
                            <div class="radio-box" th:each="dict : ${@dict.getType('assess_score')}">
                                <input type="radio"
                                       th:checked="${admInfo?.raiDetail?.get('cat1') eq dict.dictValue}"
                                       th:id="'cat1'+${dict.dictCode}"
                                       name="cat1" th:value="${dict.dictValue}" >
                                <label th:for="'cat1'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                            </div>
                        </td>
                        <td >我总是在咳嗽</td>
                    </tr>
                    <tr >
                        <td >我一点痰也没有</td>
                        <td >
                            <div class="radio-box" th:each="dict : ${@dict.getType('assess_score')}">
                                <input type="radio"
                                       th:checked="${admInfo?.raiDetail?.get('cat2') eq dict.dictValue}"
                                       th:id="'cat2'+${dict.dictCode}"
                                       name="cat2" th:value="${dict.dictValue}" >
                                <label th:for="'cat2'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                            </div>
                        </td>
                        <td >我有很多很多痰</td>
                    </tr>
                    <tr >
                        <td >当我爬坡或上1层楼梯时，没有气喘的感觉</td>
                        <td >
                            <div class="radio-box" th:each="dict : ${@dict.getType('assess_score')}">
                                <input type="radio"
                                       th:checked="${admInfo?.raiDetail?.get('cat3') eq dict.dictValue}"
                                       th:id="'cat3'+${dict.dictCode}"
                                       name="cat3" th:value="${dict.dictValue}" >
                                <label th:for="'cat3'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                            </div>
                        </td>
                        <td >当我爬坡或上1层楼梯时，感觉严重喘不过气来</td>
                    </tr>
                    <tr >
                        <td >我在家里能做任何事情</td>
                        <td >
                            <div class="radio-box" th:each="dict : ${@dict.getType('assess_score')}">
                                <input type="radio"
                                       th:checked="${admInfo?.raiDetail?.get('cat4') eq dict.dictValue}"
                                       th:id="'cat4'+${dict.dictCode}"
                                       name="cat4" th:value="${dict.dictValue}" >
                                <label th:for="'cat4'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                            </div>
                        </td>
                        <td >我在家里做任何事情都很受影响</td>
                    </tr>
                    <tr >
                        <td >尽管我有肺部疾病，但对外出很有信心</td>
                        <td >
                            <div class="radio-box" th:each="dict : ${@dict.getType('assess_score')}">
                                <input type="radio"
                                       th:checked="${admInfo?.raiDetail?.get('cat5') eq dict.dictValue}"
                                       th:id="'cat5'+${dict.dictCode}"
                                       name="cat5" th:value="${dict.dictValue}" >
                                <label th:for="'cat5'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                            </div>
                        </td>
                        <td >由于我有肺部疾病，对离开家一点信心都没有</td>
                    </tr>
                    <tr >
                        <td >我的睡眠非常好</td>
                        <td >
                            <div class="radio-box" th:each="dict : ${@dict.getType('assess_score')}">
                                <input type="radio"
                                       th:checked="${admInfo?.raiDetail?.get('cat6') eq dict.dictValue}"
                                       th:id="'cat6'+${dict.dictCode}"
                                       name="cat6" th:value="${dict.dictValue}" >
                                <label th:for="'cat6'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                            </div>
                        </td>
                        <td >由于我有肺部疾病，睡眠相当差</td>
                    </tr>
                    <tr >
                        <td >我精力旺盛</td>
                        <td >
                            <div class="radio-box" th:each="dict : ${@dict.getType('assess_score')}">
                                <input type="radio"
                                       th:checked="${admInfo?.raiDetail?.get('cat7') eq dict.dictValue}"
                                       th:id="'cat7'+${dict.dictCode}"
                                       name="cat7" th:value="${dict.dictValue}" >
                                <label th:for="'cat7'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                            </div>
                        </td>
                        <td >我一点精力都没有</td>
                    </tr>
                    </tbody>
                </table>
                <div class="form-group">
                    <label class="col-sm-2 control-label">mMRC呼吸困难分级：</label>
                    <div class="col-sm-5">
                        <div class="radio-box" >
                            <input type="radio"
                                   id="patiPlanMmrc0"
                                   th:checked="${admInfo?.raiDetail?.get('patiPlanMmrc') eq '0'}"
                                   name="patiPlanMmrc" value="0" >
                            <label for="patiPlanMmrc0">[0] 仅在用力运动时才会出现呼吸困难</label>
                        </div>
                        <div class="radio-box" >
                            <input type="radio"
                                   id="patiPlanMmrc1"
                                   th:checked="${admInfo?.raiDetail?.get('patiPlanMmrc') eq '1'}"
                                   name="patiPlanMmrc" value="1" >
                            <label for="patiPlanMmrc1">[1] 平地快步行走或步行爬小坡时出现呼吸困难</label>
                        </div>
                        <div class="radio-box" >
                            <input type="radio"
                                   id="patiPlanMmrc2"
                                   th:checked="${admInfo?.raiDetail?.get('patiPlanMmrc') eq '2'}"
                                   name="patiPlanMmrc" value="2" >
                            <label for="patiPlanMmrc2">[2] 平地行走时比同龄人慢，需要停下来休息</label>
                        </div>
                        <div class="radio-box" >
                            <input type="radio"
                                   id="patiPlanMmrc3"
                                   th:checked="${admInfo?.raiDetail?.get('patiPlanMmrc') eq '3'}"
                                   name="patiPlanMmrc" value="3" >
                            <label for="patiPlanMmrc3">[3] 在平地行走100米左右或数分钟后需要停下来体息</label>
                        </div>
                        <div class="radio-box" >
                            <input type="radio"
                                   id="patiPlanMmrc4"
                                   th:checked="${admInfo?.raiDetail?.get('patiPlanMmrc') eq '4'}"
                                   name="patiPlanMmrc" value="4" >
                            <label for="patiPlanMmrc4">[4] 因严重呼吸困难以至于不能离开家，或在穿衣服、脱衣服时出现呼吸困难</label>
                        </div>
                    </div>
                </div>
                <header class="form-header h4">肺功能检查</header>
                <div class="form-group">
                    <label class="col-sm-2 control-label">FEV1(L)：</label>
                    <div class="col-sm-2">
                        <input name="FEV1" th:value="${admInfo?.raiDetail?.get('FEV1')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">FEV1/FVC(%)：</label>
                    <div class="col-sm-2">
                        <input name="FEV1/FVC" th:value="${admInfo?.raiDetail?.get('FEV1/FVC')}"  class="form-control"  type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">FVC(L)：</label>
                    <div class="col-sm-2">
                        <input name="FVC" th:value="${admInfo?.raiDetail?.get('FVC')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">TLC(L)：</label>
                    <div class="col-sm-2">
                        <input name="TLC" th:value="${admInfo?.raiDetail?.get('TLC')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">RV(L)：</label>
                    <div class="col-sm-2">
                        <input name="RV" th:value="${admInfo?.raiDetail?.get('RV')}"  class="form-control"  type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">PEF：</label>
                    <div class="col-sm-2">
                        <input name="PEF" th:value="${admInfo?.raiDetail?.get('PEF')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">FeNO：</label>
                    <div class="col-sm-2">
                        <input name="FeNO" th:value="${admInfo?.raiDetail?.get('FeNO')}"  class="form-control"  type="text">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">激发试验：</label>
                    <div class="col-sm-7">
                        <div class="radio-box" th:each="dict : ${@dict.getType('native_positive')}">
                            <input type="radio"
                                   th:checked="${admInfo?.raiDetail?.get('ExcitationTest') eq dict.dictValue}"
                                   th:id="'ExcitationTest'+${dict.dictCode}"
                                   name="ExcitationTest" th:value="${dict.dictValue}" >
                            <label th:for="'ExcitationTest'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">舒张试验：</label>
                    <div class="col-sm-7">
                        <div class="radio-box" th:each="dict : ${@dict.getType('native_positive')}">
                            <input type="radio"
                                   th:checked="${admInfo?.raiDetail?.get('Diastolictest') eq dict.dictValue}"
                                   th:id="'Diastolictest'+${dict.dictCode}"
                                   name="Diastolictest" th:value="${dict.dictValue}" >
                            <label th:for="'Diastolictest'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">气流受限严重程度分级：</label>
                    <div class="col-sm-7">
                        <div class="radio-box" th:each="dict : ${@dict.getType('airflow_lev')}">
                            <input type="radio"
                                   th:checked="${admInfo?.raiDetail?.get('airflowLev') eq dict.dictValue}"
                                   th:id="'airflowLev'+${dict.dictCode}"
                                   name="airflowLev" th:value="${dict.dictValue}" >
                            <label th:for="'airflowLev'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">弥散功能：</label>
                    <div class="col-sm-2">
                        <input name="diffusionFunction" th:value="${admInfo?.raiDetail?.get('diffusionFunction')}"  class="form-control"  type="text">
                    </div>
                    <div class="col-sm-7">
                        <div class="radio-box" th:each="dict : ${@dict.getType('normal_abnormal')}">
                            <input type="radio"
                                   th:checked="${admInfo?.raiDetail?.get('diffusionFunctionStatus') eq dict.dictValue}"
                                   th:id="'diffusionFunctionStatus'+${dict.dictCode}"
                                   name="diffusionFunctionStatus" th:value="${dict.dictValue}" >
                            <label th:for="'diffusionFunctionStatus'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">舒张试验：</label>
                    <div class="col-sm-7">
                        <div class="radio-box" th:each="dict : ${@dict.getType('native_positive')}">
                            <input type="radio"
                                   th:checked="${admInfo?.raiDetail?.get('diastolicTest') eq dict.dictValue}"
                                   th:id="'diastolicTest'+${dict.dictCode}"
                                   name="diastolicTest" th:value="${dict.dictValue}" >
                            <label th:for="'diastolicTest'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>
                </div>

                <header class="form-header h4">血常规</header>
                <div class="form-group">
                    <label class="col-sm-2 control-label">红细胞(*109)：</label>
                    <div class="col-sm-2">
                        <input name="erythrocyte" th:value="${admInfo?.raiDetail?.get('erythrocyte')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">血红蛋白(g/L)：</label>
                    <div class="col-sm-2">
                        <input name="hemoglobin" th:value="${admInfo?.raiDetail?.get('hemoglobin')}"  class="form-control"  type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">白细胞(*109)：</label>
                    <div class="col-sm-2">
                        <input name="leukocyte" th:value="${admInfo?.raiDetail?.get('leukocyte')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">嗜酸性粒细胞计数(*109)：</label>
                    <div class="col-sm-2">
                        <input name="eosinophilCount" th:value="${admInfo?.raiDetail?.get('eosinophilCount')}"  class="form-control"  type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">白蛋白(g/L)：</label>
                    <div class="col-sm-2">
                        <input name="albumin" th:value="${admInfo?.raiDetail?.get('albumin')}"  class="form-control"  type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">血糖(mmol/L)：</label>
                    <div class="col-sm-2">
                        <input name="bloodSugar" th:value="${admInfo?.raiDetail?.get('bloodSugar')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">血小板：</label>
                    <div class="col-sm-2">
                        <input name="platelet" th:value="${admInfo?.raiDetail?.get('platelet')}"  class="form-control"  type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">肝功能：</label>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">ALT：</label>
                    <div class="col-sm-2">
                        <input name="ALT" th:value="${admInfo?.raiDetail?.get('ALT')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">AST：</label>
                    <div class="col-sm-2">
                        <input name="AST" th:value="${admInfo?.raiDetail?.get('AST')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">TBiL：</label>
                    <div class="col-sm-2">
                        <input name="TBiL" th:value="${admInfo?.raiDetail?.get('TBiL')}"  class="form-control"  type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">DBiL：</label>
                    <div class="col-sm-2">
                        <input name="DBiL" th:value="${admInfo?.raiDetail?.get('DBiL')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">IBiL：</label>
                    <div class="col-sm-2">
                        <input name="IBiL" th:value="${admInfo?.raiDetail?.get('IBiL')}"  class="form-control"  type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">肾功能：</label>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">尿素：</label>
                    <div class="col-sm-2">
                        <input name="Urea" th:value="${admInfo?.raiDetail?.get('Urea')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">肌酐：</label>
                    <div class="col-sm-2">
                        <input name="Creatinine" th:value="${admInfo?.raiDetail?.get('Creatinine')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">尿酸：</label>
                    <div class="col-sm-2">
                        <input name="UricAcid" th:value="${admInfo?.raiDetail?.get('UricAcid')}"  class="form-control"  type="text">
                    </div>
                </div>
                <header class="form-header h4">血脂</header>
                <div class="form-group">
                    <label class="col-sm-2 control-label">甘油三酯(mmol/L)：</label>
                    <div class="col-sm-2">
                        <input name="triglyceride" th:value="${admInfo?.raiDetail?.get('triglyceride')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">总胆固醇(mmol/L)：</label>
                    <div class="col-sm-2">
                        <input name="totalCholesterol" th:value="${admInfo?.raiDetail?.get('totalCholesterol')}"  class="form-control"  type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">其他：</label>
                    <div class="col-sm-2">
                        <input name="bloodFatOther" th:value="${admInfo?.raiDetail?.get('bloodFatOther')}"  class="form-control"  type="text">
                    </div>
                </div>

                <header class="form-header h4">肺康复评估</header>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><a onclick="openForm(421)">6分钟步行试验：是否完成试验</a></label>
                    <input type="hidden" id="form421" name="form421" th:value="${admInfo?.raiDetail?.get('form421')}">
                    <div class="col-sm-7">
                        <div class="radio-box" th:each="dict : ${@dict.getType('sys_yes_no')}">
                            <input type="radio"
                                   th:checked="${admInfo?.raiDetail?.get('patiKfAssess6MinTestFinish') eq dict.dictValue}"
                                   th:id="'patiKfAssess6MinTestFinish'+${dict.dictCode}"
                                   name="patiKfAssess6MinTestFinish" th:value="${dict.dictValue}" >
                            <label th:for="'patiKfAssess6MinTestFinish'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">圣乔治呼吸问卷评分：</label>
                    <div class="col-sm-10">
                        <input name="kfBreath" th:value="${admInfo?.raiDetail?.get('kfBreath')}"  class="form-control"  type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">自我护理能力量表评分：</label>
                    <div class="col-sm-10">
                        <input name="selfCare" th:value="${admInfo?.raiDetail?.get('selfCare')}"  class="form-control"  type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><a onclick="openForm(427)">医院抑郁焦虑量表评分：</a></label>
                    <div class="col-sm-10">
                        <input id="formScore427" name="depressionAnxiety" th:value="${admInfo?.raiDetail?.get('depressionAnxiety')}"  class="form-control"  type="text">
                        <input type="hidden" id="form427" name="form427" th:value="${admInfo?.raiDetail?.get('form427')}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><a onclick="openForm(428)">营养评估评分：</a></label>
                    <div class="col-sm-10">
                        <input type="hidden" id="form428" name="form428" th:value="${admInfo?.raiDetail?.get('form428')}">
                        <input id="formScore428" name="nutritionalAssessment" th:value="${admInfo?.raiDetail?.get('nutritionalAssessment')}"  class="form-control"  type="text">

                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><a onclick="openForm(426)">医疗社会支持量表：</a></label>
                    <div class="col-sm-10">
                        <input type="hidden" id="form426" name="form426" th:value="${admInfo?.raiDetail?.get('form426')}">
                        <input id="formScore426" name="medicalSocialSupport" th:value="${admInfo?.raiDetail?.get('medicalSocialSupport')}"  class="form-control"  type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">生活质量测定量表：</label>
                    <div class="col-sm-10">
                        <input name="qualityLife" th:value="${admInfo?.raiDetail?.get('qualityLife')}"  class="form-control"  type="text">
                    </div>
                </div>

                <header class="form-header h4">康复</header>
                <div class="form-group">
                    <label class="col-sm-2 control-label">康复指导：</label>
                    <div class="col-sm-10">
                        <input name="RehabilitationGuidance" th:value="${admInfo?.raiDetail?.get('RehabilitationGuidance')}"  class="form-control"  type="text">
                    </div>
                </div>
                <header class="form-header h4">健康宣教</header>
                <div class="form-group">
                    <label class="col-sm-2 control-label">健康宣教：</label>
                    <div class="col-sm-10">
                        <input name="HealthEducation" th:value="${admInfo?.raiDetail?.get('HealthEducation')}"  class="form-control"  type="text">
                    </div>
                </div>
                <header class="form-header h4">运动锻炼</header>
                <div class="form-group">
                    <label class="col-sm-2 control-label">缩唇呼吸能否完成：</label>
                    <div class="col-sm-2">
                        <div class="radio-box" th:each="dict : ${@dict.getType('sys_yes_no')}">
                            <input type="radio"
                                   th:checked="${admInfo?.raiDetail?.get('pursedLipBreathing') eq dict.dictValue}"
                                   th:id="'pursedLipBreathing'+${dict.dictCode}"
                                   name="pursedLipBreathing" th:value="${dict.dictValue}" >
                            <label th:for="'pursedLipBreathing'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>
                    <label class="col-sm-2 control-label">每次(分钟)：</label>
                    <div class="col-sm-2">
                        <input name="pursedLipBreathingMin" th:value="${admInfo?.raiDetail?.get('pursedLipBreathingMin')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">每天(次)：</label>
                    <div class="col-sm-2">
                        <input name="pursedLipBreathingTimes" th:value="${admInfo?.raiDetail?.get('pursedLipBreathingTimes')}"  class="form-control"  type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">腹式呼吸能否完成：</label>
                    <div class="col-sm-2">
                        <div class="radio-box" th:each="dict : ${@dict.getType('sys_yes_no')}">
                            <input type="radio"
                                   th:checked="${admInfo?.raiDetail?.get('abdominalBreathing') eq dict.dictValue}"
                                   th:id="'abdominalBreathing'+${dict.dictCode}"
                                   name="abdominalBreathing" th:value="${dict.dictValue}" >
                            <label th:for="'abdominalBreathing'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>

                    <label class="col-sm-2 control-label">每次(分钟)：</label>
                    <div class="col-sm-2">
                        <input name="abdominalBreathingMin" th:value="${admInfo?.raiDetail?.get('abdominalBreathingMin')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">每天(次)：</label>
                    <div class="col-sm-2">
                        <input name="abdominalBreathingTimes" th:value="${admInfo?.raiDetail?.get('abdominalBreathingTimes')}"  class="form-control"  type="text">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">上肢肌力锻炼：</label>
                    <div class="col-sm-7">
                        <label class="check-box" >
                            <input type="checkbox" name="upperLimbMuscle" value="1"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('upperLimbMuscle')?:'','1')}">
                            哑铃
                        </label>
                        <label class="check-box" >
                            <input type="checkbox" name="upperLimbMuscle" value="2"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('upperLimbMuscle')?:'','2')}">
                            弹力带
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">上肢肌力锻炼能否完成：</label>
                    <div class="col-sm-2">
                        <div class="radio-box" th:each="dict : ${@dict.getType('sys_yes_no')}">
                            <input type="radio"
                                   th:checked="${admInfo?.raiDetail?.get('upperLimbMuscleComplete') eq dict.dictValue}"
                                   th:id="'upperLimbMuscleComplete'+${dict.dictCode}"
                                   name="upperLimbMuscleComplete" th:value="${dict.dictValue}" >
                            <label th:for="'upperLimbMuscleComplete'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>

                    <label class="col-sm-2 control-label">每次(分钟)：</label>
                    <div class="col-sm-2">
                        <input name="upperLimbMuscleCompleteMin" th:value="${admInfo?.raiDetail?.get('upperLimbMuscleCompleteMin')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">每天(次)：</label>
                    <div class="col-sm-2">
                        <input name="upperLimbMuscleCompleteTimes" th:value="${admInfo?.raiDetail?.get('upperLimbMuscleCompleteTimes')}"  class="form-control"  type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">下肢肌力锻炼：</label>
                    <div class="col-sm-7">
                        <label class="check-box" >
                            <input type="checkbox" name="downLimbMuscle" value="1"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('downLimbMuscle')?:'','1')}">
                            蹬车
                        </label>
                        <label class="check-box" >
                            <input type="checkbox" name="downLimbMuscle" value="2"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('downLimbMuscle')?:'','2')}">
                            深蹲
                        </label>
                        <label class="check-box" >
                            <input type="checkbox" name="downLimbMuscle" value="3"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('downLimbMuscle')?:'','3')}">
                            跳绳
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">下肢肌力锻炼能否完成：</label>
                    <div class="col-sm-2">
                        <div class="radio-box" th:each="dict : ${@dict.getType('sys_yes_no')}">
                            <input type="radio"
                                   th:checked="${admInfo?.raiDetail?.get('downLimbMuscleComplete') eq dict.dictValue}"
                                   th:id="'downLimbMuscleComplete'+${dict.dictCode}"
                                   name="downLimbMuscleComplete" th:value="${dict.dictValue}" >
                            <label th:for="'downLimbMuscleComplete'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>

                    <label class="col-sm-2 control-label">每次(分钟)：</label>
                    <div class="col-sm-2">
                        <input name="downLimbMuscleCompleteMin" th:value="${admInfo?.raiDetail?.get('downLimbMuscleCompleteMin')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">每天(次)：</label>
                    <div class="col-sm-2">
                        <input name="downLimbMuscleCompleteTimes" th:value="${admInfo?.raiDetail?.get('downLimbMuscleCompleteTimes')}"  class="form-control"  type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">柔韧性锻炼：</label>
                    <div class="col-sm-7">
                        <label class="check-box" >
                            <input type="checkbox" name="flexibility" value="1"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('flexibility')?:'','1')}">
                            太极拳
                        </label>
                        <label class="check-box" >
                            <input type="checkbox" name="flexibility" value="2"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('flexibility')?:'','2')}">
                            呼吸操
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">柔韧性锻炼能否完成：</label>
                    <div class="col-sm-2">
                        <div class="radio-box" th:each="dict : ${@dict.getType('sys_yes_no')}">
                            <input type="radio"
                                   th:checked="${admInfo?.raiDetail?.get('flexibilityComplete') eq dict.dictValue}"
                                   th:id="'flexibilityComplete'+${dict.dictCode}"
                                   name="flexibilityComplete" th:value="${dict.dictValue}" >
                            <label th:for="'flexibilityComplete'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>

                    <label class="col-sm-2 control-label">每次(分钟)：</label>
                    <div class="col-sm-2">
                        <input name="flexibilityCompleteMin" th:value="${admInfo?.raiDetail?.get('flexibilityCompleteMin')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">每天(次)：</label>
                    <div class="col-sm-2">
                        <input name="flexibilityCompleteTimes" th:value="${admInfo?.raiDetail?.get('flexibilityCompleteTimes')}"  class="form-control"  type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">耐力锻炼：</label>
                    <div class="col-sm-7">
                        <label class="check-box" >
                            <input type="checkbox" name="endurance" value="1"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('endurance')?:'','1')}">
                            慢走
                        </label>
                        <label class="check-box" >
                            <input type="checkbox" name="endurance" value="2"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('endurance')?:'','2')}">
                            慢跑
                        </label>
                        <label class="check-box" >
                            <input type="checkbox" name="endurance" value="3"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('endurance')?:'','3')}">
                            爬山
                        </label>
                        <label class="check-box" >
                            <input type="checkbox" name="endurance" value="0"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('endurance')?:'','0')}">
                            其他
                        </label>
                        <input name="enduranceText"
                               th:value="${admInfo?.raiDetail?.get('enduranceText')}"
                               type="text"
                               style="width: 150px">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">柔韧性锻炼能否完成：</label>
                    <div class="col-sm-2">
                        <div class="radio-box" th:each="dict : ${@dict.getType('sys_yes_no')}">
                            <input type="radio"
                                   th:checked="${admInfo?.raiDetail?.get('enduranceComplete') eq dict.dictValue}"
                                   th:id="'enduranceComplete'+${dict.dictCode}"
                                   name="enduranceComplete" th:value="${dict.dictValue}" >
                            <label th:for="'enduranceComplete'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>

                    <label class="col-sm-2 control-label">每次(分钟)：</label>
                    <div class="col-sm-2">
                        <input name="enduranceCompleteMin" th:value="${admInfo?.raiDetail?.get('enduranceCompleteMin')}"  class="form-control"  type="text">
                    </div>
                    <label class="col-sm-2 control-label">每天(次)：</label>
                    <div class="col-sm-2">
                        <input name="enduranceCompleteTimes" th:value="${admInfo?.raiDetail?.get('enduranceCompleteTimes')}"  class="form-control"  type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">营养处方：</label>
                    <div class="col-sm-7">
                        <label class="check-box" >
                            <input type="checkbox" name="nutrition" value="1"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('nutrition')?:'','1')}">
                            蛋白质
                        </label>
                        <label class="check-box" >
                            <input type="checkbox" name="nutrition" value="2"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('nutrition')?:'','2')}">
                            碳水
                        </label>
                        <label class="check-box" >
                            <input type="checkbox" name="nutrition" value="3"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('nutrition')?:'','3')}">
                            脂肪
                        </label>
                        <label class="check-box" >
                            <input type="checkbox" name="nutrition" value="4"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('nutrition')?:'','4')}">
                            维生素
                        </label>
                        <label class="check-box" >
                            <input type="checkbox" name="nutrition" value="0"
                                   th:checked="${#strings.contains(admInfo?.raiDetail?.get('nutrition')?:'','0')}">
                            其他
                        </label>
                        <input name="nutritionText"
                               th:value="${admInfo?.raiDetail?.get('nutritionText')}"
                               type="text"
                               style="width: 150px">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">心理疏导：</label>
                    <div class="col-sm-8">
                        <input name="psychological" th:value="${admInfo?.raiDetail?.get('psychological')}"  class="form-control"  type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">健康宣教：</label>
                    <label class="col-sm-2 control-label">健康教育满意度：</label>
                    <div class="col-sm-5">
                        <div class="radio-box" >
                            <input type="radio"
                                   id="satisfiedHhealthEducation0"
                                   th:checked="${admInfo?.raiDetail?.get('satisfiedHhealthEducation') eq '0'}"
                                   name="satisfiedHhealthEducation" value="0" >
                            <label for="satisfiedHhealthEducation0">非常满意</label>
                        </div>
                        <div class="radio-box" >
                            <input type="radio"
                                   id="satisfiedHhealthEducation1"
                                   th:checked="${admInfo?.raiDetail?.get('satisfiedHhealthEducation') eq '1'}"
                                   name="satisfiedHhealthEducation" value="1" >
                            <label for="satisfiedHhealthEducation1">满意</label>
                        </div>
                        <div class="radio-box" >
                            <input type="radio"
                                   id="satisfiedHhealthEducation2"
                                   th:checked="${admInfo?.raiDetail?.get('satisfiedHhealthEducation') eq '2'}"
                                   name="satisfiedHhealthEducation" value="2" >
                            <label for="satisfiedHhealthEducation2">不满意</label>
                        </div>
                    </div>
                </div>
                <header class="form-header h4">医嘱信息</header>
                <div class="form-group">
                    <label class="col-sm-2 control-label">是否需要长期家庭氧疗：</label>
                    <div class="col-sm-2">
                        <div class="radio-box" th:each="dict : ${@dict.getType('sys_yes_no')}">
                            <input type="radio"
                                   th:checked="${admInfo?.raiDetail?.get('oxygenTreat') eq dict.dictValue}"
                                   th:id="'oxygenTreat'+${dict.dictCode}"
                                   name="oxygenTreat" th:value="${dict.dictValue}" >
                            <label th:for="'oxygenTreat'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">药物治疗：</label>
                    <div class="col-sm-2">
                        <div class="radio-box" th:each="dict : ${@dict.getType('sys_yes_no')}">
                            <input type="radio"
                                   th:checked="${admInfo?.raiDetail?.get('drugTreat') eq dict.dictValue}"
                                   th:id="'drugTreat'+${dict.dictCode}"
                                   name="drugTreat" th:value="${dict.dictValue}" >
                            <label th:for="'drugTreat'+${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>
                </div>
            </form>

        </div>
    </div>
    <div class="row">
        <div class="col-sm-offset-5 col-sm-10">
            <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
            <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <th:block th:include="include :: select2-js" />
    <script th:inline="javascript">
        var prefix = ctx + "disease/adminfo";
        $("#form-adminfo-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            var par={};
            var raiDetail={}
            var raiDetailArr = $('#form-adminfo-edit').serializeArray();
            $.each(raiDetailArr,function(index,field){
                if(raiDetail.hasOwnProperty(field.name)){
                    raiDetail[field.name]=raiDetail[field.name]+","+field.value;
                }else{
                    raiDetail[field.name] = field.value;
                }
            })
            par.raiDetail=raiDetail
            par.raiId=$("#raiId").val();
            par.raiAdmId=$("#raiAdmId").val();
            if ($.validate.form()) {
                $.operate.postJson(prefix + "/edit",JSON.stringify(par),function (result){
                    $.operate.successTabCallback(result);
                })
            }
        }
        function openForm(id){
            $.operate.get(ctx+"form/version/getActiveVersion/"+id,function(data){
                var recordId=$("#form"+id).val();
                if( $.common.isEmpty(recordId)){
                    recordId=0
                }
                $.modal.openTab("量表", ctx + "form/display/preview/"+recordId+"/"+data.data.versionId+"/"+$("#patId").val());
            })
        }
        //保存量表回调方法
        function saveFormBack(layoutId,recordId,score){
            $("#form"+layoutId).val(recordId);
            if($.common.isNotEmpty(score)){
                $("#formScore"+layoutId).val(score);
            }
        }
    </script>
</body>
</html>